# 定义一个学生Student类。有下面的类属性：
# 1 姓名 name
# 2 年龄 age
# 3 成绩 score（语文，数学，英语) [每课成绩的类型为整数]
# 类方法：
# 1 获取学生的姓名：get_name() 返回类型:str
# 2 获取学生的年龄：get_age() 返回类型:int
# 3 返回3门科目中最高的分数。get_course() 返回类型:int
# 写好类以后，可以定义2个同学测试下:

class student( object ):

    def __init__( self , name , age , chinesescore , englishscore , mathscore):
        self.name = name
        self.age = age
        self.chinesescore = chinesescore
        self.englishscore = englishscore
        self.mathscore = mathscore

    def get_name( self ):
        return self.name
    def get_age( self ):
        return self.age
    def get_course( self ):
        return max([self.chinesescore, self.englishscore, self.mathscore])

student1 = student( "whh", 20, 95, 100, 100)
student2 = student( "wjh", 19, 89, 97, 91)

print(student1.get_name())
print(student1.get_age())
print(student1.get_course())
print("--------------------")
print(student2.get_name())
print(student2.get_age())
print(student2.get_course())


